Move

@Serializable
data class Move(val id: Int, val name: String, val accuracy: Int?, val effectChance: Int?, val pp: Int?, val priority: Int, val power: Int?, val contestCombos: ContestComboSets?, val contestType: Handle.Named<ContestType>?, val contestEffect: Handle.Unnamed<ContestEffect>?, val superContestEffect: Handle.Unnamed<SuperContestEffect>?, val damageClass: Handle.Named<MoveDamageClass>, val effectEntries: List<VerboseEffect>, val effectChanges: List<AbilityEffectChange>, val generation: Handle.Named<Generation>, val learnedByPokemon: List<Handle.Named<PokemonVariety>>, val meta: MoveMetaData?, val names: List<Name>, val pastValues: List<PastMoveStatValues>, val statChanges: List<MoveStatChange>, val target: Handle.Named<MoveTarget>, val type: Handle.Named<Type>, val machines: List<MachineVersionDetail>, val flavorTextEntries: List<MoveFlavorText>) : NamedModel(source)

Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas. See: https://pokeapi.co/docs/v2#moves

Parameters

id

The identifier for this resource.

name

The name for this resource.

accuracy

The percent value of how likely this move is to be successful.

effectChance

The percent value of how likely it is this move's effect will happen.

pp

Power points. The number of times this move can be used.

priority

A value between -8 and 8. Sets the order in which moves are executed during battle.

power

The base power of this move with a value of 0 if it does not have a base power.

contestCombos

A detail of normal and super contest combos that require this move.

contestType

The type of appeal this move gives a Pokémon when used in a contest.

contestEffect

The effect the move has when used in a contest.

superContestEffect

The effect the move has when used in a super contest.

damageClass

The type of damage the move inflicts on the target, e.g. physical.

effectEntries

The list of previous effects this move has had across version groups of the games.

effectChanges

The list of changes that have been made to the move's effect.

generation

The generation in which this move was introduced.

learnedByPokemon

List of Pokémon that can learn this move.

meta

Metadata about this move.

names

The name of this resource listed in different languages.

pastValues

A list of move resource value changes across version groups of the game.

statChanges

List of stat changes this move causes.

target

The type of target that this move is directed at.

type

The elemental type of this move.

machines

A list of the machines that teach this move.

flavorTextEntries

The flavor text of this move listed in different languages.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, accuracy: Int?, effectChance: Int?, pp: Int?, priority: Int, power: Int?, contestCombos: ContestComboSets?, contestType: Handle.Named<ContestType>?, contestEffect: Handle.Unnamed<ContestEffect>?, superContestEffect: Handle.Unnamed<SuperContestEffect>?, damageClass: Handle.Named<MoveDamageClass>, effectEntries: List<VerboseEffect>, effectChanges: List<AbilityEffectChange>, generation: Handle.Named<Generation>, learnedByPokemon: List<Handle.Named<PokemonVariety>>, meta: MoveMetaData?, names: List<Name>, pastValues: List<PastMoveStatValues>, statChanges: List<MoveStatChange>, target: Handle.Named<MoveTarget>, type: Handle.Named<Type>, machines: List<MachineVersionDetail>, flavorTextEntries: List<MoveFlavorText>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val power: Int?
Link copied to clipboard
val pp: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard